<?php
/**
 * @author Eureka
 */
class Shops extends CActiveRecord
{

	public static function model($className = __CLASS__)
	{
		return parent::model($className);
	}

	public function tableName()
	{
		return 'shops';
	}

	public function rules()
	{
		  return array(
            array('name', 'required'),
            array('name, address', 'length', 'max'=>100),
			array('image, fanpage_url, website', 'length', 'max'=>255),
            array('name, address, image, fanpage_url, website', 'safe'),
        );
	}

}